public class Test {
    public static void main(String[] args) {
        String s1="manllllll";
        String s2=new String("manllllcc");

    }
    public static void main1(String[] args){
        String s1="haha";


        //直接new String对象
        String s2=new String("man");
        System.out.println(s2);

        //使用字符数组进行构造
        char[] array={'w','c','I','s'};
        String s3=new String(array);
        System.out.println(s3);
    }
}
